﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using Simple.Entity.Models;

namespace Simple.Entity.Mapping
{
    public class Sys_ActivityLogMap : EntityTypeConfiguration<Sys_ActivityLog>
    {
        public Sys_ActivityLogMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.LoginNo)
                .IsRequired()
                .HasMaxLength(50);

            this.Property(t => t.Comment)
                .IsRequired()
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("Sys_ActivityLog");
        }
    }
}
